package cn.dujc.superkid.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author du
 * date 2018/7/29 下午12:27
 */
public class ListDataEntity implements Parcelable {

    private Integer page_num;//共计几页

    public Integer getPage_num() {
        return page_num == null ? -1 : page_num;
    }

    public void setPage_num(Integer page_num) {
        this.page_num = page_num;
    }

    public ListDataEntity() {}

    @Override
    public int describeContents() { return 0; }

    @Override
    public void writeToParcel(Parcel dest, int flags) {dest.writeValue(this.page_num);}

    protected ListDataEntity(Parcel in) {this.page_num = (Integer) in.readValue(Integer.class.getClassLoader());}

    public static final Creator<ListDataEntity> CREATOR = new Creator<ListDataEntity>() {
        @Override
        public ListDataEntity createFromParcel(Parcel source) {return new ListDataEntity(source);}

        @Override
        public ListDataEntity[] newArray(int size) {return new ListDataEntity[size];}
    };
}
